package com.zscat.beetl.function;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.github.pagehelper.PageInfo;
import com.zscat.conf.JbaseFunctionPackage;
import com.zscat.shop.model.WGoods;
import com.zscat.shop.model.WType;
import com.zscat.shop.service.WGoodsService;
import com.zscat.shop.service.WtypeService;

@Service("goods")
public class GoodsFunction implements JbaseFunctionPackage {

	
	@Resource
	WtypeService WtypeService;
	@Resource
	WGoodsService WGoodsService;
	
	
	public PageInfo<WType> getTypes(int pageSize){
		return WtypeService.selectPage(1, pageSize, new WType());
	}
	
}
